import junit.framework.TestCase;
import org.junit.*;

public class ComplexTest extends TestCase{
    Complex c1 = new Complex(2,3);
    Complex c2 = new Complex(2,3);
    double a = 5;


    public void testgetRealPart(){
        assertEquals(2.0,c1.getRealPart());
    }

    public void testgetImaginePart(){
        assertEquals(2.0,c1.getRealPart());
    }

    public void testComplexAdd() throws Exception{
        c1.ComplexAdd(c2);
        assertEquals(2.0,c1.getRealPart());
        assertEquals(3.0,c1.getImagePart());
    }

    public void testComplexMinus() throws Exception{
        c1.ComplexDiv(c2);
        assertEquals(2.0,c1.getRealPart());
        assertEquals(3.0,c1.getImagePart());
    }

    public void testComplexMulti() throws Exception {
        c1.ComplexMulti(c2);
        assertEquals(2.0, c1.getRealPart());
        assertEquals(3.0, c1.getImagePart());

    }
}
